<div class="modal-dialog">
    <div class="modal-content">
        <form role="form" method="post" id="addForm" action="{:U('user/active_fail')}">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">拒绝原因</h4>
            </div>
            <div class="modal-body">
                <input type="hidden" name="id" value="{$info.id}"/>
                <div class="form-group">
                    <textarea class="form-control" name="refuse_msg" id="refuse_msg" rows="5"></textarea>
                </div>
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-danger">确认保存</button>
            </div>
        </form>
        <script type="text/javascript">
            $("#addForm").submit(function (e) {
                var refuse_msg = $("#refuse_msg").val();
                if (!refuse_msg || refuse_msg.length < 1) {
                    tips("请填写原因", "danger");
                    $("#refuse_msg").focus();
                    return false;
                }
                return;
            });
        </script>
    </div>
</div>